package com.Lyy.service;

import com.Lyy.dao.DeptMapper;
import com.Lyy.entity.Dept;
import lombok.Data;

import java.util.List;

@Data
public class DeptSE implements DeptSEI {
    private DeptMapper deptMapper;
    @Override
    public List<Dept> SelectDeptAll() {
        return deptMapper.SelectDeptAll();
    }
    @Override
    public Dept SelectDeptOne(int id) {
        return deptMapper.SelectDeptOne(id);
    }
    @Override
    public int AddDept(Dept dept) {
        return deptMapper.AddDept(dept);
    }
    @Override
    public int DelDeptByID(int id) {
        return deptMapper.DelDeptByID(id);
    }
    @Override
    public int UpdateDeptByID(Dept dept) {
        return deptMapper.UpdateDeptByID(dept);
    }
}
